package main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.eudi.dubbo.common.User;
import com.eudi.user.service.IUserService;

public class UserMain {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationConsumer.xml" });
		context.start();
		IUserService userService = (IUserService) context.getBean("userService");
		User user = userService.getUser(1);
		System.out.println(user);
		try {
			Thread.sleep(60 * 60 * 1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		context.close();
	}
}
